package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 激活码增删改查对象 ActivationCodes
 *
 * @author 何志龙
 * @date 2024-09-11
 */
public class ActivationCodes extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 激活码 */
    @Excel(name = "激活码")
    private String activationCode;

    /** 序列号 */
    @Excel(name = "序列号")
    private String serialNumber;

    /** 生成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date generationTime;

    /** 激活时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "激活时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date activationTime;

    /** 激活人员 */
    @Excel(name = "激活人员")
    private String activatedBy;

    /** 所属公司 */
    @Excel(name = "所属公司")
    private String company;

    /** 所属产品 */
    @Excel(name = "所属产品")
    private String product;

    /** 生效周期 */
    @Excel(name = "生效周期")
    private String activationPeriod;

    /** 有效期 */
    @Excel(name = "有效期")
    private String expiryDate;

    /** 生效周期 */
    @Excel(name = "生效周期")
    private String youxiaoqi;

    /** 激活状态 */
    @Excel(name = "激活状态")
    private String status;

    /** 剩余次数 */
    @Excel(name = "剩余次数")
    private Long number;

    @Excel(name = "生成次数")
    private Long numbers;

    public Long getNumbers() {
        return numbers;
    }

    public void setNumbers(Long numbers) {
        this.numbers = numbers;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setActivationCode(String activationCode)
    {
        this.activationCode = activationCode;
    }

    public String getActivationCode()
    {
        return activationCode;
    }
    public void setSerialNumber(String serialNumber)
    {
        this.serialNumber = serialNumber;
    }

    public String getSerialNumber()
    {
        return serialNumber;
    }
    public void setGenerationTime(Date generationTime)
    {
        this.generationTime = generationTime;
    }

    public Date getGenerationTime()
    {
        return generationTime;
    }
    public void setActivationTime(Date activationTime)
    {
        this.activationTime = activationTime;
    }

    public Date getActivationTime()
    {
        return activationTime;
    }
    public void setActivatedBy(String activatedBy)
    {
        this.activatedBy = activatedBy;
    }

    public String getActivatedBy()
    {
        return activatedBy;
    }
    public void setCompany(String company)
    {
        this.company = company;
    }

    public String getCompany()
    {
        return company;
    }
    public void setProduct(String product)
    {
        this.product = product;
    }

    public String getProduct()
    {
        return product;
    }
    public void setActivationPeriod(String activationPeriod)
    {
        this.activationPeriod = activationPeriod;
    }

    public String getActivationPeriod()
    {
        return activationPeriod;
    }
    public void setExpiryDate(String expiryDate)
    {
        this.expiryDate = expiryDate;
    }

    public String getExpiryDate()
    {
        return expiryDate;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setNumber(Long number)
    {
        this.number = number;
    }

    public Long getNumber()
    {
        return number;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("activationCode", getActivationCode())
                .append("serialNumber", getSerialNumber())
                .append("generationTime", getGenerationTime())
                .append("activationTime", getActivationTime())
                .append("activatedBy", getActivatedBy())
                .append("company", getCompany())
                .append("product", getProduct())
                .append("activationPeriod", getActivationPeriod())
                .append("expiryDate", getExpiryDate())
                .append("status", getStatus())
                .append("number", getNumber())
                .append("youxiaoqi", getYouxiaoqi())
                .toString();
    }

    public String getYouxiaoqi() {
        return youxiaoqi;
    }

    public void setYouxiaoqi(String youxiaoqi) {
        this.youxiaoqi = youxiaoqi;
    }
}
